package com.lagou.service;

import com.lagou.service.fallback.AuthCodeServiceClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by IntelliJ IDEA.
 * User: Yangdx.
 * Date: 2020/7/26.
 * Time: 1:20.
 * Tags: Code, we are serious.
 */
@FeignClient(value = "code-service", path = "/code", fallback = AuthCodeServiceClientFallback.class)
public interface AuthCodeServiceClient {
    @GetMapping("/validate/{email}/{code}")
    public int validateAuthCode(@PathVariable("email") String email, @PathVariable("code") String code);
}
